import axios from 'axios'

const request = axios.create({
  // baseURL: 'https://www.oceanread.com:460'
  // baseURL: 'http://xxs.dhybzx.org:8008'
  baseURL: 'https://xxs.dhybzx.org:3000/qstyphoon/'
})

export { request }

//响应拦截器
request.interceptors.response.use(
  res => {
    const { data } = res
    return data
  },
  error => {
    return Promise.reject(error)
  }
)
